<template>
    <manageList @item-selected="handleItemSelected" />
</template>

<script setup lang="ts">
import manageList from '@/components/memorialManagePages/manageList.vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const handleItemSelected = (itemId: number | string, pathName: string) => {
    console.log('收到项目:', itemId, pathName)
    // 根据不同的 pathName 跳转到对应的路由
    router.push({
        path: `/memorialManage/${pathName}`,
        query: { memorialId: itemId }
    })
}
</script>